package com.demo.bean9001.service.impl.colum;

import com.demo.bean9001.mapper.column.ColumnMapper;
import com.demo.bean9001.service.column.ColumnService;
import com.demo.common.entity.ColumnManagement;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * 查询主栏目、次级栏目
 * 作者：孙佳佳
 */
@Service
public class ColumnServiceImpl implements ColumnService {

    @Autowired
    private ColumnMapper columnMapper;

    @Override
    public List<ColumnManagement> searchAllParent() {
        return columnMapper.selectAllParent();
    }

    @Override
    public List<ColumnManagement> searchByFatherId(Integer columnFatherId) {
        return columnMapper.selectByFatherId(columnFatherId);
    }
}
